a = '7fcd6961ca322e97383088697b8c3c3ed33634903963d77d21c76c629c322dc03160d23428c53867812d'

# 0x7f^f=key[0]
# 0xcd^l=key[1]
# 0x69^a=key[2]
# 0x61^g=key[3]
# 0xca^｛=key[4]
# 0x2d^}=key[5]
key = []
a1 = 0x7f ^ ord("f")
a2 = 0xcd ^ ord("l")
a3 = 0x69 ^ ord("a")
a4 = 0x61 ^ ord("g")
a5 = 0xca ^ ord("{")
a6 = 0x2d ^ ord("}")
key.append(a1)
key.append(a2)
key.append(a3)
key.append(a4)
key.append(a5)
key.append(a6)
key = key * 11
print(key)
b1 = []
for i in range(0, len(a), 2):
    tmp = a[i:i + 2]
    tmp = int(tmp, 16)
    b1.append(tmp)

flag = ""
for p, q in zip(b1, key):
    tmp = chr(p ^ q)
    flag += (tmp)
print(flag)
